Spread WinForms 15
GrapeCity.CalcEngine Assembly / GrapeCity.CalcEngine Namespace / ArrayHelper Class / Clone Method / Clone<T>(T[],Int32,Int32) Method
The type of element in array.
The array source to clone.
An integer value indicates the start element index to clone.
An integer value indicates the number of elements to clone.


In This Topic
Clone<T>(T[],Int32,Int32) Method
In This Topic
Clones the specified array to a new array.
Syntax
'Declaration
 
Public Overloads Shared Function Clone(Of T)( _
   ByVal source() As T, _
   ByVal index As Integer, _
   ByVal length As Integer _
) As T()
 
'Usage
 
Dim source() As T
Dim index As Integer
Dim length As Integer
Dim value() As T
 
value = ArrayHelper.Clone(Of T)(source, index, length)

Parameters

source
The array source to clone.
index
An integer value indicates the start element index to clone.
length
An integer value indicates the number of elements to clone.

Type Parameters

T
The type of element in array.

Return Value

A T[] value represents the cloned array.
See Also